import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter);

//user相关
import login from "~/views/user/login";
import register from "~/views/user/register";
import myIndex from "~/views/index";

const routes = [
  {path: '/user/login',name:'login',component:login},
  {path: '/user/register',name:'register',component:register},
  {path: '/',name:'myIndex',component:myIndex},
];

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
});

export default router
